<?php

//define("MODEL2_DEBUG_MODE",true);

if (get_magic_quotes_gpc()) {
        $_POST = array_map("stripslashes",$_POST);
        $_GET = array_map("stripslashes",$_GET);
        $_COOKIE = array_map("stripslashes",$_COOKIE);
}

$GLOBALS['cfgMultipleClientCapability'] = false;
define("XICS_VERSION","0.9.24&szlig;");

define('XICS_ABS_PATH', /*absPath*/"/var/www/web29/files/"/*/absPath*/);

if ($GLOBALS['cfgMultipleClientCapability'])
{
    define("ETC_PATH", XICS_ABS_PATH."clients/".$_SERVER['SERVER_NAME']."/etc");
}
else
{
    define("ETC_PATH", XICS_ABS_PATH."etc");
}

// Use with mod_rewrite and such
// define('MODEL2_SCRIPT_NAME', '/XICS/main/index.php');

include_once(ETC_PATH."/var_paths.inc.php");
include_once($GLOBALS['cfgPaths']['lib'].'base/functions.inc.php');
include_once(ETC_PATH."/var_main.inc.php");
include_once(ETC_PATH."/dbconf.inc.php");
include_once(ETC_PATH."/var_queries.inc.php");
define("MODEL2_DBCONF", ETC_PATH."/dbconf.inc.php");
define("MODEL2_FORCE_COMPILE", false);
define("MODEL2_DEBUG_MODE", true);
define("MODEL2_LOG_DIR", XICS_ABS_PATH);

define("MODEL2_INCLUDE_PATH", substr($GLOBALS['cfgPaths']['lib'], 0, strlen($GLOBALS['cfgPaths']['lib'])-1).':/Applications/MAMP/bin/php5/lib/php');
define("MODEL2_SESSION_EXPIRE", 40);
include_once($GLOBALS['cfgPaths']['lib'].'phpinchains/core.php');
$GLOBALS['MODEL2_NS'][] = 'xics';
PHPinChains::prepareAndStartChain(ETC_PATH.'/main-app.xml');
